import request from "@/utils/request";

// 获取购物车
export function getCart(data) {
    return request.post('/cart/list', data)
}
// 数量
export function setNum(data) {
    return request.post('/cart/updatenum', data)
}
// 删除
export function delone(data) {
    return request.post('/cart/remove', data)
}
// 复选
export function seleone(data) {
    return request.post('/cart/selectone', data)
}
// 全选
export function seleall(data) {
    return request.post('/cart/selectall', data)
}
// 全删
export function delall(data) {
    return request.post('/cart/removeall', data)
}
// 添加订单 
export function addOrder(data) {
    return request.post('/order/addOrder', data)
}